package com.teamwork_backend.mapper;

import com.teamwork_backend.entity.ResumePosition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author windy
 * @since 2021-04-25
 */
public interface ResumePositionDao extends BaseMapper<ResumePosition> {
    @Select("SELECT * FROM resume_position WHERE resume_position.positionid IN (SELECT positions.positionid FROM positions WHERE companyid = #{companyid})")
    List<ResumePosition> getRPbyCompanyid(@Param("companyid") String companyid);
}
